const express = require( 'express' );
const router = express();

router.listen( 8080 );

router.get( '/login', ( req, res ) => {
    res.send( '后台登录' );
} );

router.get( '/index', ( req, res ) => { 
    res.send( '后台首页' );
} );

router.get( '/addnews', ( req, res ) => { 
    res.send( 'addnews' );
} );

module.exports = router;